﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.Master" AutoEventWireup="true" CodeBehind="NewsCategoryDetails.aspx.cs" Inherits="WebUI.AdminSite.News.NewsCategoryDetails" %>
<%@ Register src="../../UserControls/UCCreateCategory.ascx" tagname="UCCreateCategory" tagprefix="uc1" %>
<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>

<%@ Import Namespace="WebUI.DAL" %>
<%@ Register src="../../UserControls/UcNameDescription.ascx" tagname="UcNameDescription" tagprefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="../../Scripts/JSBackHistory.js"></script>
    <script src="../../Scripts/JSDatePick.js"></script>
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
    <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
    
    <script>
        function openPopup() {
            var id = '<%= Request.QueryString["Id"] %>';
            window.open("NewsCategoryAddLanguage.aspx?id=" + id, 'son', 'width=1000,height=400, left=100, top=100, scrollbars=1').focus();
        }
    </script><%--open popup--%>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
	    <div class="son-find-module width_full">
	        <asp:LinkButton runat="server" ID="btnPopup" OnClientClick="openPopup();" Text="Add English"></asp:LinkButton>
            <asp:Label ID="lblNo" CssClass="bold marginBotTop" runat="server">Create New</asp:Label>
            <asp:Label ID="lblCategoryName" CssClass="bold marginBotTop"   runat="server">Name</asp:Label>
            <asp:TextBox ID="txtCategoryName" CssClass="inputText" runat="server" />
            <asp:RequiredFieldValidator ID="rqfCategoryName" Display="Dynamic" runat="server" ControlToValidate="txtCategoryName"
            ErrorMessage="Không được để trống!"></asp:RequiredFieldValidator>
            <asp:Label ID="lblDesc" CssClass="bold marginBotTop" runat="server">Desc</asp:Label>
            <CKEditor:CKEditorControl ID="ckey1"  BasePath="/ckeditor/" runat="server" />            
            
            
            <asp:Label ID="lblStatus" CssClass="bold marginBotTop" runat="server">Status</asp:Label>
            <asp:DropDownList ID="drpStatus" runat="server" >
                <asp:ListItem Value="NORMAL">NORMAL</asp:ListItem>
                <asp:ListItem Value="STANDBY">STANDBY</asp:ListItem>
                <asp:ListItem Value="DELETED">DELETED</asp:ListItem>
            </asp:DropDownList>
            <div class="btnSaveDelete">
                <asp:LinkButton ID="btnUpdate" runat="server" onclick="btnUpdate_Click">Update</asp:LinkButton>
                <asp:LinkButton ID="btnDeleted" runat="server">Delete</asp:LinkButton>
                <asp:LinkButton ID="btnBack" runat="server" OnClientClick="goBack()">Back</asp:LinkButton>
            </div>
            <asp:HiddenField runat="server" ID="hdfId"/>
        </div>
        
</asp:Content>
